package com.chb.javabasic.jpa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.chb.javabasic.jpa")
@EntityScan(basePackages = "com.chb.javabasic.jpa")
@EnableCaching   //缓存驱动注解 Redis
public class User2Application {
    public static void main(String[] args) {
        SpringApplication.run(User2Application.class, args);
    }
}
